 #include "EventObserver.h"
 #include "Logger.h"

EventObserver::~EventObserver()
{
	BPL::Logger::log("delete eventObserver");
}

EventObservable::~EventObservable()
{
	BPL::Logger::log("delete eventObservable");
}

void EventObservable::sendEvent(sf::Event& event)
{
    iterator itb = mpt_list.begin();
    const_iterator ite = mpt_list.end();

    for(; itb!=ite; ++itb)
    {
        boost::polymorphic_downcast<EventObserver*>(*itb)->getEvent(event);
    }
}
